wayland: Stop using surface types
authorMatthias Clasen <mclasen@redhat.com>
Sun, 8 Mar 2020 20:37:13 +0000 (13:37 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 12 Mar 2020 19:30:10 +0000 (15:30 -0400)
gdk/wayland/gdkdevice-wayland.c

index f31ff99045012d864b269d47ef3b4ddf5c75dbf0..f063563aae1e67be8428a296385545205fde14a9 100644 (file)
@@ -749,7 +749,7 @@ gdk_wayland_device_grab (GdkDevice    *device,
   GdkWaylandSeat *wayland_seat = GDK_WAYLAND_SEAT (gdk_device_get_seat (device));
   GdkWaylandPointerData *pointer = GDK_WAYLAND_DEVICE (device)->pointer;
 
-  if (gdk_surface_get_surface_type (surface) == GDK_SURFACE_TEMP &&
+  if (GDK_IS_DRAG_SURFACE (surface) &&
       gdk_surface_get_mapped (surface))
     {
       g_warning ("Surface %p is already mapped at the time of grabbing. "